package com.bwie.config;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : xiaogao
 * @date : 2024-11-19 21:41
 * @description :
 **/

@Configuration
public class KafkaConfig {
    @Bean
    public NewTopic testTopic(){

        return new NewTopic("topic-test",1,(short) 1);
    }
}